﻿<shared:UserControlBase x:Class="HP.Cachalote.WPF.UserControls.FinishedTodoItemTreeViewItemUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:shared="clr-namespace:HP.Cachalote.WPF.Shared"
             xmlns:userControls="clr-namespace:HP.Cachalote.WPF.UserControls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Skins/StoryBoards/FinishedTodoItemTreeViewUserControlStoryBoard.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid x:Name="GridMainContent" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type TreeView}, AncestorLevel=1}, 
                        Path=ActualWidth, Converter={StaticResource NumberSubtractionConverter}, ConverterParameter=30}">
        <Grid.RenderTransform>
            <TransformGroup>
                <ScaleTransform/>
                <SkewTransform/>
                <RotateTransform/>
                <TranslateTransform/>
            </TransformGroup>
        </Grid.RenderTransform>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <CheckBox x:Name="ChkUndone" Style="{StaticResource BigCheckBoxStyle}" Margin="0,6,0,0" IsChecked="True" VerticalContentAlignment="Center" Click="ChkUndone_Click" />
        <TextBlock Text="{Binding Title}" Style="{StaticResource FinishedTodoItemTitleTextBlock}" 
                                       Grid.Column="1" Grid.ColumnSpan="2" Padding="3" TextWrapping="Wrap" />
    </Grid>
</shared:UserControlBase>
